//
//  NotesModel.m
//  Travels
//
//  Created by yanghuiyan on 16/3/15.
//  Copyright © 2016年 yanghuiyan. All rights reserved.
//

#import "NotesModel.h"

@implementation NotesModel

- (void)dealloc
{
    [_descriptions release];
    [_photo_image_height release];
    [_photo_image_width release];
    [_photo_url release];
    [_notes release];
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        self.descriptions = value;
    }
    if ([key isEqualToString:@"photo"]) {
        self.photo_url = value[@"url"];
        self.photo_image_width = value[@"image_width"];
        self.photo_image_height = value[@"image_height"];
    }
}
@end
